<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>卡片管理</title>
<style type="text/css">
ul li{
	list-style:none;
}
</style>
</head>
<body>
<h2>卡片管理</h2>
	<form id="card-form" method="post">
		<ul>
			<li>标&nbsp;&nbsp;&nbsp;&nbsp;题：<input type="text" name="title" /></li>
			<li>副标题：<input type="text" name="subtitle" /></li>
			<li>图&nbsp;&nbsp;&nbsp;&nbsp;片：<input type="text" name="img_path" /></li>
			<li>内&nbsp;&nbsp;&nbsp;&nbsp;容：<textarea id="editor" name="content" rows="10" cols="50"></textarea></li>
		</ul>
		<div style="text-align:center;"><a id="save" href="javascript:;">提交</a></div>
	</form>
	<script type="text/javascript" src="/static/js/jquery.min.js"></script>
	<script type="text/javascript" src="/static/js/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="/static/js/ueditor/ueditor.all.min.js"></script>
	<script type="text/javascript">
	$(function(){
		$('#save').on('click',function(){
			$.post('/Card',$('#card-form').serialize(),function(data){
				alert(data);
				console.log(data);
			});
		});
		
		var ue = UE.getEditor('editor');
	});
	</script>
</body>
</html>